package cn.broadsense.web.controller.body;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author huangjinshi
 * @description
 * @createDate 2024-09-11 15:43:42
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("修改密码表单数据")
public class UpdatePasswordBody implements Serializable {

    @NotBlank(message = "请输入旧密码")
    private String oldPassword;

    @NotBlank(message = "请输入新密码")
    private String newPassword;
}
